﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsList1.ascx.cs" Inherits="Control_NewsList1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<style type="text/css">

/*拍拍网风格*/
.paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}
.paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;margin-right:2px}
.paginator a:visited {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;}
.paginator .cpb {padding: 1px 6px;font-weight: bold; font-size: 13px;border:none}
.paginator a:hover {color: #fff; background: #ffa501;border-color:#ffa501;text-decoration: none;}

.code{font-weight:bold;color:blue}
</style>
<div style="text-align:center;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Label ID="LB_NewsList1" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:Repeater ID="RPT_NewList1" runat="server">
    <ItemTemplate>
      <table width="90%" align="center" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="18px" height="16" align="center" valign="middle"><img src="Control/images/d.jpg" alt="" /></td>
          <td align="left" valign="bottom"><a href="NewsInfo.aspx?NewsID=<%# Eval("News_ID") %>" target="_blank"><%# Eval("News_Title")%></a></td>
          <td width="100px" align="right" valign="bottom"><%# Convert.ToDateTime(Eval("News_DateTime").ToString()).ToShortDateString()%>&nbsp;</td>
        </tr>
        <tr> 
          <td colspan="3" height="16"></td>

        </tr>
      </table>
    </ItemTemplate>
    </asp:Repeater>
<webdiyer:AspNetPager id="AspNetPager1" runat="server" PagingButtonLayoutType="Span" LayoutType="Table" ShowPageIndexBox="Never" PrevPageText="上一页" PageSize="8" OnPageChanged="AspNetPager1_PageChanged" NextPageText="下一页" CurrentPageButtonClass="cpb" CssClass="paginator" LastPageText="尾页" FirstPageText="首页">
    </webdiyer:AspNetPager>
    </ContentTemplate>
    </asp:UpdatePanel>
</div>